package com.bfl.sa.maintain.notification.service;

import com.bfl.sa.common.service.BaseService;
import com.bfl.sa.maintain.notification.entity.NotificationTemplate;
import com.bfl.sa.maintain.notification.mapper.NotificationTemplateMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class NotificationTemplateService extends BaseService<NotificationTemplate, Long> {

    @Resource
    private NotificationTemplateMapper notificationTemplateMapper;

    public NotificationTemplate findByName(final String name) {
        return notificationTemplateMapper.findByName(name);
    }

}
